package com.android.dialnowsms;

import android.text.Editable;
import android.text.TextWatcher;

public class SMSTextWatcher implements TextWatcher{
  
  private SMSComposer composer_view;

  public SMSTextWatcher(SMSComposer smsComposer) {
    composer_view = smsComposer;
  }

  //@Override
  public void afterTextChanged(Editable s) {
  }

  //@Override
  public void beforeTextChanged(CharSequence s, int start, int count, int after) {
  }

  //@Override
  public void onTextChanged(CharSequence s, int start, int before, int count) {
    int length = s.toString().length();
    composer_view.chars_count.setText("" + length);
  }

}
